package edu.govschool2010.screens;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnKeyListener;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;

public class NewSituation extends Activity {

	private EditText sitEditText;
	private TextView ifText, thenText;
	private ListView ifList, thenList;
	private ArrayList<String> ifItems, thenItems;
	private ArrayAdapter<String> ifAdapter, thenAdapter;
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        sitEditText = (EditText)findViewById(R.id.sitName);
        ifText = (TextView)findViewById(R.id.ifText);
        ifList = (ListView)findViewById(R.id.ifList);
        thenText = (TextView)findViewById(R.id.thenText); 
        thenList = (ListView)findViewById(R.id.thenList);
        ifItems = new ArrayList<String>();
        thenItems = new ArrayList<String>();
        ifAdapter = new ArrayAdapter<String>(this, R.layout.list_item2, ifItems);
        thenAdapter = new ArrayAdapter<String>(this, R.layout.list_item2, thenItems);

        ifList.setAdapter(ifAdapter);
        thenList.setAdapter(thenAdapter);
        
        ifItems.add("the day is...");
        ifItems.add("the time is...");
        ifItems.add("my location is...");
        thenItems.add("do these things...");
    }
}